import java.util.Scanner;

public class ForDemo08 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        // 循环
        for (int i = 0; i < 10; i++) {
            System.out.println("请输入一个数字");
            int num = scanner.nextInt();
            //判断能被3或被5整除 || 或者
            if (num % 3 == 0 || num % 5 == 0) {
                System.out.println("能被3或5整除");
            } else {
                System.out.println("不能");
            }
        }


    }
}
